<?php
/**
 * User: itimphp
 * Date: 6/5/12
 * Time: 12:01 PM
 */

class Service_Value{

	public static function name_form_to_fields($form){
		$value = array();
		switch ($form) {
			case 1 :
				$value = array(
					'requested_amount' => 'loanAmount',
					'email' => 'email',
					'title' => 'title',
					'first_name' => 'firstName',
					'last_name' => 'lastName',
					'postcode' => 'postCode',
					'streetnumber' => 'houseNumber',
					'streetname' => 'street',
					'town' => 'town',
					'country' => 'country',
					'own_home' => 'residentialStatus',
					'home_phone' => 'homePhone',
					'work_phone' => 'workPhone',
					'mobile_phone' => 'mobilePhone',
					'address_length' => 'timeAtHome',
					'birth_date' => 'birthday',
					'income_type' => 'employmentType',
					'employer' => 'employerName',
					'job_title' => 'jobTitle',
					'pay_frequency' => 'payFrequency',
					'next_pay_date' => 'nextPayDate',
					'pay_date_after' => 'payDateAfter',
					'employed_time' => 'employedTime',
					'monthly_income' => 'frequencyIncome',
					'bank_name' => 'bankName',
					'bank_account_number' => 'bankAccountNumber',
					'bank_sort_code' => 'bankSortCode',
					'debit_card' => 'debitCard',
					'direct_deposit' => 'directDeposit',
					'bank_account_length_months' => 'monthAtBank'
				);
			break;
			case 2 :
				$value = array(
					'loan_amount' => 'loanAmount',
					'purpose' => 'purpose',
					'repayment_period' => 'repaymentPeriod',
					'credit_rating' => 'creditRating',
					'title' => 'title',
					'first_name' => 'firstName',
					'last_name' => 'lastName',
					'birth_date' => 'birthday',
					'email' => 'email',
					'home_phone' => 'homePhone',
					'mobile_phone' => 'mobilePhone',
					'time_to_contact' => 'timeToContact',
					'country_of_residence' => 'countryOfResidence',
					'married_status' => 'marriedStatus',
					'house_number' => 'houseNumber',
					'house_name' => 'houseName',
					'street' => 'street',
					'area' => 'area',
					'town' => 'town',
					'county' => 'country',
					'postcode' => 'postCode',
					'residential_status' => 'residentialStatus',
					'time_at_home' => 'timeAtHome', //radio 3years lived at this address
					'employment_type' => 'employmentType',
					'frequency_income' => 'frequencyIncome',
					'salary_to_bank' => 'salaryToBank',
					'bankrupt' => 'bankrupt',
					'debt' => 'debt',
					'guarantor' => 'guarantor'
				);
			break;
			case 3 :
				$value = array(
					'amount' => 'loanAmount',
					'purpose' => 'purpose',
					'title' => 'title',
					'first_name' => 'firstName',
					'last_name' => 'lastName',
					'birth_date' => 'birthday',
					'home_phone' => 'homePhone',
					'mobile_phone' => 'mobilePhone',
					'email' => 'email',
					'married_status' => 'marriedStatus',
					'house_number' => 'houseNumber',
					'house_name' => 'houseName',
					'postcode' => 'postCode',
					'employment_type' => 'employmentType',
					'monthly_income' => 'frequencyIncome',
				);
			break;
		}
		return $value;
	}

	public static function get_multilchoice($form){
		$value = array();
		switch ($form) {
			case 1 :
				$value = array(
					'requested_amount' => array(
						50 => 'Up to 50',
						100 => 'Up to 100',
						150 => 'Up to 150',
						200 => 'Up to 200',
						250 => 'Up to 250',
						300 => 'Up to 300',
						350 => 'Up to 350',
						400 => 'Up to 400',
						450 => 'Up to 450',
						500 => 'Up to 500',
						550 => 'Up to 550',
						600 => 'Up to 600',
						650 => 'Up to 650',
						700 => 'Up to 700',
						750 => '750 or more'),
					'title' => array(
						'MR' => 'Mr.',
						'MRS' => 'Mrs.',
						'MISS' => 'Miss.',
						'MS' => 'Ms.'
					),
					'country' => array(
						'Antrim' => 'Antrim',
						'Ards' => 'Ards',
						'Armagh' => 'Armagh',
						'Bedfordshire' => 'Bedfordshire',
						'Berkshire' => 'Berkshire',
						'Belfast' => 'Belfast',
						'Ballymena' => 'Ballymena',
						'Ballymoney' => 'Ballymoney',
						'Banbridge' => 'Banbridge',
						'Borders Region' => 'Borders Region',
						'Bristol' => 'Bristol',
						'Buckinghamshire' => 'Buckinghamshire',
						'Cambridgeshire' => 'Cambridgeshire',
						'Central Region' => 'Central Region',
						'Carrickfergus' => 'Carrickfergus',
						'Craigavon' => 'Craigavon',
						'Cheshire' => 'Cheshire',
						'Channel Is' => 'Channel Is',
						'Cookstown' => 'Cookstown',
						'Coleraine' => 'Coleraine',
						'Clwyd' => 'Clwyd',
						'Cornwall' => 'Cornwall',
						'Castlereagh' => 'Castlereagh',
						'Cumbria' => 'Cumbria',
						'Dumfries &amp; Galloway Region' => 'Dumfries &amp; Galloway Region',
						'Derbyshire' => 'Derbyshire',
						'Devon' => 'Devon',
						'Dungannon' => 'Dungannon',
						'Dorset' => 'Dorset',
						'Down' => 'Down',
						'Derry' => 'Derry',
						'Durham' => 'Durham',
						'Dyfed' => 'Dyfed',
						'East Riding of Yorkshire' => 'East Riding of Yorkshire',
						'East Sussex' => 'East Sussex',
						'Essex' => 'Essex',
						'Fermanagh' => 'Fermanagh',
						'Fife Region' => 'Fife Region',
						'Gloucestershire' => 'Gloucestershire',
						'Grampian Region' => 'Grampian Region',
						'Greater London' => 'Greater London',
						'Greater Manchester' => 'Greater Manchester',
						'Gwent' => 'Gwent',
						'Gwynedd' => 'Gwynedd',
						'Hampshire' => 'Hampshire',
						'Hertfordshire' => 'Hertfordshire',
						'Herefordshire' => 'Herefordshire',
						'Highland Region' => 'Highland Region',
						'Isle of Man' => 'Isle of Man',
						'Isles of Scilly' => 'Isles of Scilly',
						'Isle of Wight' => 'Isle of Wight',
						'Kent' => 'Kent',
						'Lancashire' => 'Lancashire',
						'Leicestershire' => 'Leicestershire',
						'Lincolnshire' => 'Lincolnshire',
						'Limavady' => 'Limavady',
						'Londonderry' => 'Londonderry',
						'Lothian Region' => 'Lothian Region',
						'Larne' => 'Larne',
						'Lisburn' => 'Lisburn',
						'Mid Glamorgan' => 'Mid Glamorgan',
						'Middlesex' => 'Middlesex',
						'Merseyside' => 'Merseyside',
						'Magherafelt' => 'Magherafelt',
						'Moyle' => 'Moyle',
						'North Yorkshire' => 'North Yorkshire',
						'North Down' => 'North Down',
						'Northamptonshire' => 'Northamptonshire',
						'Norfolk' => 'Norfolk',
						'Nottinghamshire' => 'Nottinghamshire',
						'Newtownabbey' => 'Newtownabbey',
						'Northumberland' => 'Northumberland',
						'Newry and Mourne' => 'Newry and Mourne',
						'Omagh' => 'Omagh',
						'Orkney Is' => 'Orkney Is',
						'Oxfordshire' => 'Oxfordshire',
						'Powys' => 'Powys',
						'Rutland' => 'Rutland',
						'South Glamorgan' => 'South Glamorgan',
						'Shetland Is' => 'Shetland Is',
						'Shropshire' => 'Shropshire',
						'Somerset' => 'Somerset',
						'Staffordshire' => 'Staffordshire',
						'Strabane' => 'Strabane',
						'Strathclyde Region' => 'Strathclyde Region',
						'Suffolk' => 'Suffolk',
						'Surrey' => 'Surrey',
						'South Yorkshire' => 'South Yorkshire',
						'Tyne &amp; Wear' => 'Tyne &amp; Wear',
						'Tayside Region' => 'Tayside Region',
						'Tyrone' => 'Tyrone',
						'West Glamorgan' => 'West Glamorgan',
						'Western Isles' => 'Western Isles',
						'West Sussex' => 'West Sussex',
						'Warwickshire' => 'Warwickshire',
						'Wiltshire' => 'Wiltshire',
						'Worcestershire' => 'Worcestershire',
						'West Midlands' => 'West Midlands',
						'West Yorkshire' => 'West Yorkshire'
					),
					'own_home' => array(
						'Rent',
						'Own'
					),
					'income_type' => array(
						'Full-Time Employment',
						'Part-Time Employment',
						'Self-Employment',
						'Temporary Employment',
						'Pension',
						'Benefits',
						'Unemployed'
					),
					'pay_frequency' => array(
						'Specific Day Each Month',
						'Four-weekly',
						'Weekly',
						'Biweekly',
						'Last Working Day of Month',
						'Last Monday of Month',
						'Last Tuesday of Month',
						'Last Wednesday of Month',
						'Last Thursday of Month',
						'Last Friday of Month',
						'Specific Date'
					),
					'debit_card' => array(
						'Switch/Maestro',
						'Solo',
						'Visa Delta',
						'Visa Debit',
						'Visa Electron',
						'Mastercard',
						'No Debit Card'
					),
					'bank_account_length_months' => array(
						1 => '1 Month',
						2 => '2 Month',
						5 => '3-6 Months',
						9 => '7-12 Months',
						18 => 'More than 1 year',
						30 => 'More than 2 years'
					)
				);
			break;
			case 2:
				$value =array(
					'loan_amount' => array(
						"500" => '£500',
						"750" => '£750',
						"1000" => '£1000',
						"1250" => '£1250',
						"1500" => '£1500',
						"1750" => '£1750',
						"2000" => '£2000',
						"2250" => '£2250',
						"2500" => '£2500',
						"2750" => '£2750',
						"3000" => '£3000',
						"3500" => '£3500',
						"4000" => '£4000',
						"4500" => '£4500',
						"5000" => '£5000',
						"6000" => '£6000',
						"7000" => '£7000',
						"8000" => '£8000',
						"9000" => '£9000',
						"10000" => '£10,000',
						"11000" => '£11,000',
						"12000" => '£12,000',
						"13000" => '£13,000',
						"14000" => '£14,000',
						"15000" => '£15,000',
						"16000" => '£16,000',
						"17000" => '£17,000',
						"18000" => '£18,000',
						"19000" => '£19,000',
						"20000" => '£20,000',
						"22500" => '£22,500',
						"25000" => '£25,000',
						"30000" => '£30,000',
						"35000" => '£35,000',
						"40000" => '£40,000',
						"45000" => '£45,000',
						"50000" => '£50,000',
						"60000" => '£60,000',
						"70000" => '£70,000',
						"80000" => '£80,000',
						"90000" => '£90,000',
						"100000" => '£100,000'
					),
					'purpose' => array(
						'Debt Consolidation',
						'Home Improvements',
						'Vehicle Purchase',
						'Furniture Purchase',
						'Electrical Equipment Purchase',
						'House Deposit',
						'Mortgage',
						'Business Venture',
						'Holiday',
						'Wedding',
						'Medical Expenses',
						'Tuition Fees',
						'Christmas',
						'Other'
					),
					'credit_rating' => array(
						'Excellent',
						'Not Excellent'
					),
					'title' => array(
						'MR' => 'Mr.',
						'MRS' => 'Mrs.',
						'MISS' => 'Miss.',
						'MS' => 'Ms.'
					),
					'time_to_contact' => array(
						'Morning',
						'Afternoon',
						'Evening',
					),
					'country_of_residence' => array(
						'UK Mainland',
						'Rest of the World',
					),
					'married_status' => array(
						'Married',
						'Single',
						'Divorced',
						'Separated',
						'Widowed',
						'Co-habiting',
						'Other'
					),
					'residential_status' => array(
						'Owner',
						'Tenant'
					),
					'employment_type' => array(
						'Employed',
						'Self-Employed',
						'Professional Self-Employed',
						'Unemployed',
						'Housewife/Househusband',
						'Student',
						'Retired',
					),
				);
			break;
			case 3 :
				$value = array(
					'purpose' => array(
						'Debt Consolidation',
						'Home Improvements',
						'Wedding',
						'Car',
						'Holiday',
						'Other',
					),
					'title' => array(
						'MR' => 'Mr',
						'MRS' => 'Mrs',
						'MISS' => 'Miss',
						'DR' => 'Dr',
						'MS' => 'Ms',
					),
					'married_status' => array(
						'Homeowner With Mortgage',
						'Homeowner No Mortgage',
						'Living With Parents',
						'Living With Friends',
						'Living With Relatives',
						'Council Tenant',
						'Private Tenant',
					),
					'employment_type' => array(
						'Full Time',
						'Part Time',
						'Professionally Self-Employed',
						'Manually Self-Employed',
						'Retired',
						'Disabled',
						'Unemployed',
						'Housewife/Househusband',
						'Student',
					),
				);
				break;
		}
		return $value;
	}
}